import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    number:0
  },
  getters: { 
    getNumber(state) {
      return state.number;
    }
  },
  mutations: {
    addNumber(state, num) {
      state.number = num;
    }
  },
  actions: {
  },
  modules: {
  }
})
